package com.jeeplus.test.postgraduate.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jeeplus.test.jlnu.admissionInfo.domain.entity.AdmissionInfo;
import com.jeeplus.test.postgraduate.domain.vo.PostgraduateReqVo;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface PostgraduateMapper {

    void insertJlnuPostgraduate(List<PostgraduateReqVo> dataList);

    void updateJlnuPostgraduate(PostgraduateReqVo postgraduateReqVo);


    Page<PostgraduateReqVo> getAdmissionInfoPage(PostgraduateReqVo admissionInfoReqVo, Page<PostgraduateReqVo> page);

    void updateAdmissionsById(AdmissionInfo admissionInfo);

    List<Integer> selectAdmissionInfo(@Param("type") String type, @Param("value") String value);

    List<Integer> selectPostgraduate(@Param("type") String type, @Param("value") String value);

    int batchUpdatePostgraduate(@Param("ids") List<Integer> ids,@Param("dto") PostgraduateReqVo postgraduateReqVo);

    PostgraduateReqVo selectAdmissionInfoByRecord(PostgraduateReqVo postgraduateReqVo);
}
